package com.github.edu.repair.manager.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

/**
 * Create by IntelliJ IDEA
 * 用户：王建
 * 日期：2018-8-20
 */
@Entity
@Table(name = "t_bx_rwfp")
public class TBxRwfp implements Serializable {

    private Integer id;
    private String ly;
    private String fwfl;
    private String pgry;
    private String clgcs;
    private Integer fzbm;

    @Id
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "ly")
    public String getLy() {
        return ly;
    }

    public void setLy(String ly) {
        this.ly = ly;
    }

    @Basic
    @Column(name = "fwfl")
    public String getFwfl() {
        return fwfl;
    }

    public void setFwfl(String fwfl) {
        this.fwfl = fwfl;
    }

    @Basic
    @Column(name = "pgry")
    public String getPgry() {
        return pgry;
    }

    public void setPgry(String pgry) {
        this.pgry = pgry;
    }

    @Basic
    @Column(name = "clgcs")
    public String getClgcs() {
        return clgcs;
    }

    public void setClgcs(String clgcs) {
        this.clgcs = clgcs;
    }

    @Basic
    @Column(name = "fzbm")
    public Integer getFzbm() {
        return fzbm;
    }

    public void setFzbm(Integer fzbm) {
        this.fzbm = fzbm;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TBxRwfp tBxRwfp = (TBxRwfp) o;
        return Objects.equals(id, tBxRwfp.id) &&
                Objects.equals(ly, tBxRwfp.ly) &&
                Objects.equals(fwfl, tBxRwfp.fwfl) &&
                Objects.equals(pgry, tBxRwfp.pgry) &&
                Objects.equals(clgcs, tBxRwfp.clgcs) &&
                Objects.equals(fzbm, tBxRwfp.fzbm);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, ly, fwfl, pgry, clgcs, fzbm);
    }
}
